package com.shtel.paas.monitorcenter.view.dispaly.distributead.ddatabase.monitor.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.shtel.paas.monitorcenter.util.Page;
import com.shtel.paas.monitorcenter.view.dispaly.distributead.ddatabase.monitor.entity.DistributeaddDatabaseMonitorEntity;
import com.shtel.paas.monitorcenter.view.dispaly.distributead.ddatabase.monitor.mapper.DistributeaddDatabaseMonitorMapper;
import com.shtel.paas.monitorcenter.view.dispaly.distributead.ddatabase.monitor.service.DistributeaddDatabaseMonitorService;
import com.shtel.paas.monitorcenter.view.dispaly.distributead.ddatabase.monitor.vo.DistributeaddDatabaseMonitorVo;

@Service
public class DistributeaddDatabaseMonitorServiceImpl implements DistributeaddDatabaseMonitorService{

	/**
	 * 分布式数据库监控
	 */
	@Autowired
	DistributeaddDatabaseMonitorMapper distributeaddDatabaseMonitorMapper;
	@Override
	public Page<DistributeaddDatabaseMonitorVo> selectDistributeaddDatabaseMonitorInfo(
			DistributeaddDatabaseMonitorEntity parameter) {
		
		PageHelper.startPage(parameter.getPage(), parameter.getSize());
		List<DistributeaddDatabaseMonitorVo> resultInfo = this.distributeaddDatabaseMonitorMapper.selectDistributeaddDatabaseMonitorInfo(parameter);
		Page<DistributeaddDatabaseMonitorVo> result = Page.build(resultInfo);
		return result;
	}

}
